//
//  QSProblemFinishContentCell.m
//  DigitalEconomy_iOS
//
//  Created by Ding on 2020/3/26.
//  Copyright © 2020 DingC. All rights reserved.
//

#import "QSProblemFinishContentCell.h"

@implementation QSProblemFinishContentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self configSubView];
}

- (void)configSubView{
    self.backgroundColor = [UIColor clearColor];
    self.contentView.layer.cornerRadius = 8;
    self.contentView.layer.masksToBounds = YES;
    self.contentView.backgroundColor = [UIColor QSColorWhiteFFFFFF];
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.equalTo(self.mas_leading).offset(kRealValue(10));
        make.trailing.equalTo(self.mas_trailing).offset(kRealValue(-10));
        make.top.equalTo(self.mas_top).offset(kRealValue(10));
        make.bottom.equalTo(self.mas_bottom).offset(kRealValue(0));
    }];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)setModel:(QSProblemDetailModel *)model{
    _model = model;
    _rightPeopleLabel.text = [NSString stringWithFormat:@"%@-%@",model.dealDepartment, model.dealName];
    _dealDateRightLabel.text = [NSDate dateWithTimestamp:model.dealTime format:@"yyyy-MM-dd HH:mm"];
    _feedBackContentRightLabel.text = model.dealInfo;
    _sendPeopleRightLabel.text = model.sendName;
    _sendOrderRightLabel.text = [NSDate dateWithTimestamp:model.sendTime format:@"yyyy-MM-dd HH:mm"];
    if (_sendRemarkRightLabel.text.length == 0) {
      _sendRemarkRightLabel.text = @"暂无备注";
    }else{
      _sendRemarkRightLabel.text = model.sendInfo;
    }
}
@end
